package main

import (
	"net"
	"fmt"
	"strings"
	"time"
)

func main() {
	conn, err := net.DialTimeout("udp", "10.71.89.190:80", time.Second*10)
	if err != nil {
		fmt.Println(111)
		fmt.Println(err.Error())
		return
	}
	defer conn.Close()
	fmt.Println(strings.Split(conn.LocalAddr().String(), ":")[0])
}